<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><spring:message code="label.title" /></title>
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
</head>
<body>
<h2>
  <spring:message code="label.title" />
 </h2> 
 <h3><spring:message code="label.account.addaccount" /></h3>
 <div>
   <a href="index.jsp">home</a> > <a href="adminAccount.htm">administracion</a> > <spring:message code="label.account.addaccount" />
 </div> 
 <div>
 <form:form method="POST" commandName="accountforms" action="/mvc_proyectoFinal/addAccount.htm">
 <form:hidden path="id" value="1000" />
 <form:errors path="*" cssClass="errorblock" element="div"/>
   <table>
      <tr>  
        <td><spring:message code="label.account.numero" />:</td>
        <td><form:input path="numero" /></td>
        <td><form:errors path="numero" cssClass="error" /></td>
      </tr>
      <tr>  
        <td><spring:message code="label.account.nombre" />:</td>
        <td><form:input path="nombre" /></td>
        <td><form:errors path="nombre" cssClass="error" /></td>
      </tr>
      <tr>  
        <td><spring:message code="label.account.estado" />:</td>
        <td>
        <form:select path="estado">
			<form:option value="NONE" label="--- Select ---"/>
			<form:option value="Active" label="Active"/>
			<form:option value="Inactive" label="Inactive"/>			
		</form:select>
        </td>
        <td><form:errors path="estado" cssClass="error" /></td>
      </tr>
      <tr>  
        <td><spring:message code="label.account.balance" />:</td>
        <td><form:input path="balance" /></td>
        <td><form:errors path="balance" cssClass="error" /></td>
      </tr>      
      <tr>
        <td colspan="3">
        <input type="submit" />
        </td>
      </tr>
   </table>
   </form:form> 
 </div>
</body>
</html>